<?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Admin_Projectmoney extends Controller_Admin {

    //put your code here

    public function before() {
        parent::before();
        $this->setActive_menu_left('project');
        $this->setSub_menu(View::factory('admin/project/sub-menu'));
    }

    public function action_list() {
        $this->add_css(array('alertify.core', array('<style>
            .not-sort{
                background: transparent !important;
            }
        </style>')));

        $this->add_js(array('jquery.dataTables', 'alertify.min'));

        $this->template->content = View::factory("admin/projectmoney/list");
    }

    public function action_add() {

        $this->add_css(array('clockface', 'timepicker'));
        $this->add_js(array('js/wysiwyg/bootstrap-wysihtml5', 'bootstrap-colorpicker', 'date-picker/date', 'date-picker/daterangepicker', 'clockface', 'bootstrap-timepicker', 'jquery.bootstrap.wizard'));

        $this->template->content = View::factory("admin/projectmoney/add");
    }

    public function action_edit() {

        $this->add_css(array('clockface', 'timepicker'));
        $this->add_js(array('js/wysiwyg/bootstrap-wysihtml5', 'bootstrap-colorpicker', 'date-picker/date', 'date-picker/daterangepicker', 'clockface', 'bootstrap-timepicker', 'jquery.bootstrap.wizard'));

        $this->template->content = View::factory("admin/project/edit");
    }

}
